﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main_Stu.aspx.cs" Inherits="LOGIN.Chinese" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="../App_Themes/主题一/StyleSheet1.css" rel="stylesheet" type="text/css" /> 
    <title></title>
    <script type="text/javascript">
        window.onload = function () {
            var label = document.getElementById("lblTime");
            function sessionTimeout() {
                label = document.getElementById("lblTime");
                var seconds = parseInt(label.value);
                seconds = seconds - 1;
                label.value = seconds.toString();
                if (seconds == 0) {
                    alert("考试时间已结束!请重新考试");
                    window.location.href = "Main_Stu.aspx";
                    clearInterval(sessionTimeout);
                }
            }
            if (!isNaN(label.value)) {
                setInterval(sessionTimeout, 1000);
            }
        }          
    </script> 
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="main">
            <div id="test_time">
                考试剩余时间： 
<input id="lblTime" runat="server" type="text" style="border:0px;width:110px;" value="请先选择考试科目"/> 

            </div>
            <div id="a">
            <br />
            <br />
                <asp:Label ID="login" runat="server" ForeColor="White"></asp:Label>
                <br />
            <br />

                    <div id="a_time">
                        <script type="text/javascript">
                            function currentdate() {
                                var tody = new Date();
                                var nian = tody.getFullYear();
                                var youe = tody.getMonth() + 1;
                                var day = tody.getDate();
                                var hour = tody.getHours();
                                var min = tody.getMinutes();
                                var miao = tody.getSeconds();
                                document.getElementById('<%=time.ClientID%>').innerHTML = nian + "年" + youe + "月" + day + "日&nbsp;&nbsp;&nbsp;" + hour + ":" + min + ":" + miao;
                         }

                         var time1 = setInterval("currentdate();", 1000);
                        </script>
                        <br />
                        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                            <asp:ListItem>主题一</asp:ListItem><asp:ListItem>主题二</asp:ListItem><asp:ListItem>主题三</asp:ListItem></asp:DropDownList>&nbsp;&nbsp;&nbsp;<asp:Label ID="time" runat="server"></asp:Label></div>&nbsp;&nbsp;&nbsp;</div>
            <div id="b">
            <div id="b_1">
                <br />
                <br />
            <asp:Button ID="update" runat="server" OnClick="update_Click" Text="修改资料" />
                <br />
                <br />
                <br />
                <asp:Button ID="mark" runat="server" OnClick="mark_Click" Text="查询成绩" />
                <br />
                <br />
                <br />
                选择考试科目：<asp:DropDownList ID="ddlSubject" runat="server">
                    <asp:ListItem>语文</asp:ListItem>
                    <asp:ListItem>数学</asp:ListItem>
                    <asp:ListItem>英语</asp:ListItem>
                </asp:DropDownList>
                <br />
                <br />
                <br />
                <asp:Button ID="text" runat="server" OnClick="text_Click" Text="开始考试" />
                <br />
                <br />
                <br />
            <asp:Button ID="exit" runat="server" OnClick="exit_Click" Text="退出登录" />
                <br />
                <br />
                <br />
            </div>
            <div id="b_2">
                <br />
                <br />
                <asp:Label ID="question1" runat="server">题目一</asp:Label>
                <br />
                <asp:RadioButton ID="A1" runat="server" GroupName="que1" Text="选项A" />
                <br />
                <asp:RadioButton ID="B1" runat="server" GroupName="que1" Text="选项B" />
                <br />
                <asp:RadioButton ID="C1" runat="server" GroupName="que1" Text="选项C" />
                <br />
                <asp:RadioButton ID="D1" runat="server" GroupName="que1" Text="选项D" />
                <br />
                <br />
                <br />
                <asp:Label ID="question2" runat="server">题目二</asp:Label>
                <br />
                <asp:RadioButton ID="A2" runat="server" GroupName="que2" Text="选项A" />
                <br />
                <asp:RadioButton ID="B2" runat="server" GroupName="que2" Text="选项B" />
                <br />
                <asp:RadioButton ID="C2" runat="server" GroupName="que2" Text="选项C" />
                <br />
                <asp:RadioButton ID="D2" runat="server" GroupName="que2" Text="选项D" />
                <br />
                <br />
                <br />
                <br />
                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/img/tijiao.png" OnClick="ImageButton1_Click" />
                <br />
                <br />
                <asp:Label ID="lblInfo" runat="server"></asp:Label>
                <br />
            </div>
            
        </div>
        <div id="c"></div>
        </div></div>
    </form>
</body>
</html>
